package com.dsg.dao.bank;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.entity.account.DsgAccountTrade;
import com.dsg.entity.bank.DsgBankDetail;
import com.dsg.util.BaseDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 銀行往來明細資料 Mapper 接口
 * </p>
 *
 * @author system
 * @since 2020-07-12
 */
@Repository
public interface DsgBankDetailMapper extends BaseDao<DsgBankDetail> {

    /**
     * 詢銀行往來明細資料
     * @param page
     * @param dsgBankDetail
     * @return
     */
    List<DsgBankDetail> selectByDetailList(Page<DsgBankDetail> page, @Param(value = "en") DsgBankDetail dsgBankDetail);


    /**
     * 銀行往來過數檔案主鍵查詢交易賬目明細
     * @param oid
     * @return
     */
    List<DsgAccountTrade> selectDsgAccountTradeList(String oid);

}
